<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="../common/common.js"></script>
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../ckfinder/ckfinder.js"></script>
<link href="common/main.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function Insert_Page( editor )
{
	if( editor != 'undefined' )
	{
		editor.insertHtml('[page]');
	}
}
</script>
<style>
input { width:200px; }
</style>
</head>
<body>
<p class="fontBold">资讯添加</p>
<form name="theForm" action="news_edit.php" method="post" onsubmit="return cksubmit(this);">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
	<input type="hidden" name="id" value="{--$news.id--}" />
	<td>标题</td><td><input type="text" name="title" value="{--$news.title--}" />分类<select name="category">
                	{--section name=loop loop=$cats--}
                    {--if $news.catid ==$cats[loop].f_id--}
                    {--assign var="selected" value=" selected"--}
                    {--else--}
                    {--assign var="selected" value=""--}
                    {--/if--}
                    <option value="{--$cats[loop].f_id--}" {--$selected--}>{--$cats[loop].f_name--}</option>
                    {--/section--}
                </select></td>
</tr>
<tr>
	<td>来源</td><td><input type="text" name="copyfrom" value="{--$news.copyfrom--}" />作者<input type="text" name="author" value="{--$news.author--}" style="width:80px;" /></td>
</tr>
<tr><td>keywords</td>
	<td><input type="text" name="keywords" value="{--$news.keywords--}" />主关键字内容,,会根据这个关键字查找淘宝客的商品,显示出来</td>
</tr>
<tr>
	<td>摘要</td><td><textarea name="description" cols="80" rows="3">{--$news.description--}</textarea></td>
</tr>
  <tr>
  	<td>内容</td>
	<td>
    	<textarea name="content" id="content">{--$news.content--}</textarea>
        <script language="javascript">
		var editor = CKEDITOR.replace('content', {skin:'office2003', width:700, height:400});
		CKFinder.SetupCKEditor( editor, '../ckfinder/');
		</script>
        <span onclick="Insert_Page(editor);">插入分页</span>
    </td>
  </tr>
  <tr>
  	<td>Meta Keywords</td>
    <td><textarea cols="45" rows="4" name="seokeywords" id="seokeywords">{--$news.seokeywords--}</textarea>seo优化,头关键字</td>
  </tr>
  <tr>
  	<td>Meta Description</td>
    <td><textarea cols="45" rows="4" name="seodescription" id="seodescription">{--$news.seodescription--}</textarea> seo优化,头描述</td>
  </tr>
<tr><td></td><td><button type="submit" name="submit">保存</button></td></tr>
</table>
</form>
</body>
</html>